import Vue from 'vue'
import App from './App'
import store from './store'
import utils from './utils/utils';
import http from './utils/http';
// import mixin from "./utils/mixin.js"
import form from './utils/formValidation.js'
import tuiModal from '@/components/modal/modal.vue';
import MescrollBody from "@/components/mescroll-uni/mescroll-body.vue"
import MescrollUni from "@/components/mescroll-uni/mescroll-uni.vue"
import loading from "@/components/loading/loading";
Vue.config.productionTip = false

Vue.prototype.$util = utils;
Vue.prototype.$http = http;
Vue.prototype.$store = store;
// #ifdef H5
import wechat from './utils/wechat.js';
Vue.prototype.$wechat = wechat;
// #endif
Vue.prototype.$eventHub = Vue.prototype.$eventHub || new Vue();
import common from "./utils/common.js"
Vue.mixin(common) 

App.mpType = 'app'
Vue.prototype.$form = form;
Vue.component('tuiModal', tuiModal);
Vue.component('mescroll-body', MescrollBody)
Vue.component('mescroll-uni', MescrollUni)	
Vue.component('loading', loading);
import uView from "uview-ui";
Vue.use(uView);
const app = new Vue({
	store,
	...App
})
app.$mount()
